package com.qfedu.service;

import com.qfedu.entity.Cart;

import java.lang.reflect.InvocationTargetException;
import java.math.BigDecimal;
import java.sql.SQLException;
import java.util.List;

public interface CartService {
    public Cart getCartById(int uid ,int pid) throws IllegalAccessException, SQLException, InvocationTargetException;
    public int addCart(int uid, int pid, int cnum, BigDecimal ccount) throws SQLException;
    public int update(int cnum, BigDecimal ccount,int cid) throws SQLException;
    public List<Cart> getCartListByUid(int uid) throws IllegalAccessException, SQLException, InvocationTargetException;
    public int delete(int cid) throws SQLException;
    public int deleteCart(int uid) throws SQLException;
}
